<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常见网页布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body{
            height: 1500px;
        }

        .nav {
            height: 60px;
            background-color: gray;
        }

        .top {
            width: 980px;
            height: 160px;
            background-color: gray;
            margin: 10px auto;
        }

        .banner {
            width: 980px;
            height: 410px;
            background-color: gray;
            margin: 10px auto;
        }

        .banner>div {
            float: left;
            width: 237px;
            height: 200px;
            margin-right: 10px;
            margin-bottom: 10px;
            background-color: pink;
        }

        .banner .last {
            margin-right: 0;
        }

        .footer {
            height: 200px;
            background-color: gray;
        }
    </style>
</head>

<body>
    <div class="nav"></div>
    <div class="top"></div>
    <div class="banner">
        <div></div>
        <div></div>
        <div></div>
        <div class="last"></div>
        <div></div>
        <div></div>
        <div></div>
        <div class="last"></div>
    </div>
    <div class="footer"></div>
</body>

</html>